package com.cskaoyan.service.admin;

import com.cskaoyan.bean.MarketCategory;
import com.cskaoyan.bean.MarketGoods;
import com.cskaoyan.bean.bo.admin.goods.GoodsCreateBO;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.bean.vo.admin.goods.GoodsCatAndBrandVO;
import com.cskaoyan.bean.vo.admin.goods.GoodsDetailVO;
import com.cskaoyan.bean.vo.wx.GoodDetailVO;

import java.util.List;

public interface GoodsService {
    CommonData<MarketGoods> query(String goodsSn, Integer goodsId, String name, BasePageInfo info);

    GoodsCatAndBrandVO getCatAndBrand();

    int createGoods(GoodsCreateBO goodsCreateBO);

    void delete(MarketGoods marketGoods);

    GoodsDetailVO selectGoodDetailVOById(Integer id);

    int updateGoods(GoodsCreateBO goodsCreateBO);


    int selectCount();

    GoodDetailVO getGoodDetail(Integer id, Integer userId);

    CommonData<MarketGoods> getRelatedGoods(Integer id);

    /*
     * @Description TODO 根据商品id获取商品信息
     * @param
     * @return
     * @date 2022-11-23 0:21
     * @auther yxy_8175@163.com
    */
    MarketGoods queryGoodById(int goodId);

    List<MarketGoods> querySelective(Integer catId, Integer brandId, String keywords, Boolean isHot, Boolean isNew, Integer offset, Integer limit, String sort, String order);

    List<Integer> getCatIds(Integer brandId, String keywords, Boolean isHot, Boolean isNew);

}
